﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true"
    CodeBehind="Details.aspx.cs" Inherits="MVCClubSite.Web.Views.Announcements.Details" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div class="contentblock">
        <h2>
            <%= ViewData.Model.Announcement.Title %>
        </h2>
        <h5>
            <%= ViewData.Model.Announcement.AnnouncementDate.ToLongDateString() %></h5>
        <p>
            <%= ViewData.Model.Announcement.Description %></p>
        <% if (ViewData.Model.Announcement.AlbumID != 0)
           { %>
        <%= Html.ActionLink("View article album", "Details", "Albums", new { id = ViewData.Model.Announcement.AlbumID }, null)%>
        <br />
        <%} %>
        <br />
        <% if (User.IsInRole("Administrator"))
           { %>
        <%= Html.ActionLink("Edit Article", "Edit", "Announcements", new{ id = ViewData.Model.Announcement.ID }, null) %>
        <%} %>
    </div>
</asp:Content>
